﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace otis.entities.products
{
    /// <summary>
    /// 样式的小类
    /// 轿内:轿壁式样、吊顶式样、扶手式样
    /// 厅外：门套式样
    /// </summary>
    public class StyleAttachBigType
    {
        public int Id { get; set; }
        public string Name { get; set; }

        /// <summary>
        /// 式样所属大类
        /// </summary>
        public StyleBigType StyleBigType { get; set; }
    }

    public class StyleAttachBigTypeHelper
    {
        public static List<StyleAttachBigType> InitStyleAttachBigType(List<StyleBigType> styleBigTypes)
        {
            var items = new List<StyleAttachBigType>();
            items.Add(new StyleAttachBigType() { Id = 1, Name = "轿壁式样",StyleBigType= (from p in styleBigTypes where p.Name.Equals("轿内") select p).First()  });
            items.Add(new StyleAttachBigType() { Id = 2, Name = "吊顶式样", StyleBigType = (from p in styleBigTypes where p.Name.Equals("轿内") select p).First() });
            items.Add(new StyleAttachBigType() { Id = 3, Name = "地毯式样", StyleBigType = (from p in styleBigTypes where p.Name.Equals("轿内") select p).First() });
            items.Add(new StyleAttachBigType() { Id = 4, Name = "扶手式样", StyleBigType = (from p in styleBigTypes where p.Name.Equals("轿内") select p).First() });
            items.Add(new StyleAttachBigType() { Id = 5, Name = "门套式样", StyleBigType = (from p in styleBigTypes where p.Name.Equals("厅外") select p).First() });
            return items;
        }
    }
}
